package blendModel
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.display.BlendMode;
	
	public class SimpleBlendModel extends Sprite
	{
		private var display1:Bitmap;
		private var display2:Bitmap;
		
		private var data1:BitmapData;
		private var data2:BitmapData;
		
		public function SimpleBlendModel()
		{
			super();
			init();
		}
		
		public function init():void {
			data1 = new BitmapData(100,100,true,0xffff0000);
			data2 = new BitmapData(100,100,true,0xff00ff00);
			
			display1 = new Bitmap(data1);
			display2 = new Bitmap(data2);
			display1.x = 100;
			display2.x = 150;
			display2.y = 50;
			this.addChild(display1);
			this.addChild(display2);
			display2.blendMode = BlendMode.ADD;
		}
	}
}